home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / u_man / cat1 / sum.z / sum
Encoding:
Text File  |  1998-10-20  |  1.3 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SSSSUUUUMMMM((((1111))))                                                                  SSSSUUUUMMMM((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      sum - print checksum and block count of a file
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ssssuuuummmm [ ----rrrr ] file
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _s_u_m calculates and prints a 16-bit checksum for the named file, and also
  16.      prints the number of blocks in the file.  NNNNUUUULLLLLLLL characters (with ASCII
  17.      value zero) are ignored in computing the checksum.  _s_u_m is typically used
  18.      to look for bad spots, or to validate a file communicated over some
  19.      transmission line.  The option ----rrrr causes an alternate algorithm to be
  20.      used in computing the checksum.  This alternate algorithm does not ignore
  21.      NULL characters.
  22.  
  23. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  24.      wc(1).
  25.  
  26. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  27.      ``Read error'' is indistinguishable from end of file on most devices;
  28.      check the block count.
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.